import { ComponentProps, VueComponent } from "vue3-oop"
import { NCollapse,NCollapseItem } from 'naive-ui';
import FlexView from "../flex/FlexView"
import styles from './CollapseView.module.scss'
import { WidgetNode } from '../../../types'
import CollapseProps from "./CollapseProps";
import LayoutProps from "../../basic/LayoutProps"

interface IProps {
  widgetNode: WidgetNode
}
export default class CollapseView extends VueComponent<IProps> {
  static defaultProps: ComponentProps<IProps> = {
    widgetNode: {}
  }

  constructor(
  ) {
    super();
  }

  render() {
    const { widgetNode } = this.props;
    const widgetProps = widgetNode.widgetProps as CollapseProps;

    return (
      <NCollapse>
        <NCollapseItem title={"title"} name={1}>
          <FlexView
            widgetNode={widgetNode}
          />
        </NCollapseItem>
      </NCollapse>
    )
  }
}